package com.xu.mall.base.select.model;

import java.io.Serializable;

import com.xu.mall.base.common.Constants;
import com.xu.mall.base.tree.entity.BaseTreeEntity;

/**
 * 选择项
 * 
 * @version Revision History
 * 
 *          <pre>
 * Author     Version       Date        Changes
 * lunan.xu   1.0           2012-10-27  Created
 * </pre>
 * 
 * @since 1.
 */
public class SelectItem extends BaseTreeEntity implements Serializable {
	private static final long serialVersionUID = -4286258423967278034L;

	private SelectItemType type;

	@Override
	public void setCode(String code) {
		this.code = code.startsWith(Constants.CodePrefix.SelectItem) ? code : Constants.CodePrefix.SelectItem + code;
	}

	public SelectItemType getType() {
		return type;
	}

	public void setType(SelectItemType type) {
		this.type = type;
	}
}
